package com.xunwulian.base.constant;

import com.xunwulian.base.util.EnumType;

/**
 * 用户角色枚举
 */
public enum UserRoleType implements EnumType<UserRoleType, String, String> {

    SYSTEM("0", "系统"),
    SYS_ADMIN("1", "系统管理员"),
    SUPER_ADMIN("2", "超级管理员"),
    USER("4", "用户组"),
    SUB_USER("5", "子用户组"),
    CUSTOMER("7", "客户组"),
    UNKNOWN("9", "未知");

    public String role;
    public String desc;

    UserRoleType(String role, String desc) {
        this.role = role;
        this.desc = desc;
    }

    @Override
    public String getType() {
        return this.role;
    }

    @Override
    public String getDesc() {
        return this.desc;
    }


}
